<?php include_once("../../../common/common_setting_unit.php");         // 引入通用的设置文件 ?>
<?php include_once(ROOT_PATH_ . "/controller/common/module/head.php"); // 引入通用的头部 ?>

<?php
$_p['nid']        =$_REQUEST['nid'];
$_p['ai_publish'] =$_REQUEST['status'];

//print_r2($_p);

$sqlstr = update_date($table_prefix."link",$_p,"nid",$_p['nid']);

//echo $sqlstr;

$query = mysql_query($sqlstr) or die ( error_log());

    if($query)
    {
        $result['error'] = "0";
    }
    else
    {
        $result['error'] = "1";
    }

    echo json_encode($result);
    exit;
?>


